package com.xg.java.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import java.util.List;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
/**
 * @description network_pan
 * @author wang
 * @date 2021-12-17
 */
@Data
@ApiModel("network_pan")
public class NetworkPan implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    /**
     * id
     */
    @ApiModelProperty("id")
    private Long id;

    /**
     * 类型0文件1文件夹
     */
    @ApiModelProperty("类型0文件1文件夹")
    private Integer type;

    /**
     * pid
     */
    @ApiModelProperty("pid")
    private Long pid;

    /**
     * 名字
     */
    @ApiModelProperty("名字")
    private String name;

    /**
     * 文件路径
     */
    @ApiModelProperty("文件路径")
    private String path;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    private Long userId;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 文件大小
     */
    @ApiModelProperty("文件大小")
    private Long fileSize;

    @TableField(exist = false)
    private List<NetworkPan> childs;

    public NetworkPan() {}
}